<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title><?php echo $this->_tpl_vars['softtitle'] ?></title>
<link href="templates/css/baselist.css" rel="stylesheet" type="text/css" />
<link href="templates/css/all.css" rel="stylesheet" type="text/css" />
<link href="templates/css/pagination.css" rel="stylesheet" type="text/css"/>
<link href="templates/css/prettyPhoto.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/control.js"></script>
<script type="text/javascript" src="js/form.js"></script>
<script type="text/javascript" src="js/dialog.js"></script>
<script type="text/javascript" src="js/pagebotton.js"></script>
<script type="text/javascript" src="js/imagejcrop.js"></script>
<script type="text/javascript" src="js/prettyPhoto.js"></script>

<script type="text/javascript" language="JavaScript">
	var mangerlist_filecheck_js_filedirok = "<?php echo $this->_tpl_vars['ST']['mangerlist_filecheck_js_filedirok'] ?>";
	var mangerlist_filecheck_js_filedirno = "<?php echo $this->_tpl_vars['ST']['mangerlist_filecheck_js_filedirno'] ?>";
	var iframename = "<?php echo $this->_tpl_vars['iframename'] ?>";
	var checkfrom="<?php echo $this->_tpl_vars['checkfrom'] ?>";
	var editiframename="<?php echo $this->_tpl_vars['iframeid'] ?>";
	$(document).ready(function(){
		var h = $(window).height();
		$('#mainwindowhidden').css({height:h-103});
		var formlist=document.getElementById('filemodelattselectform');

		var loadurl=formlist.elements[0].value;

		var maxperpage=formlist.elements[1].value;

		var maxhit=formlist.elements[2].value;

		var nowpage=formlist.elements[3].value;

		var loadname=formlist.elements[6].value;

		var pagetextname=formlist.elements[7].value;

		var pagebottonname=formlist.elements[8].value;
		pageDimensions(h,maxperpage,maxhit,nowpage,loadurl,loadname,pagetextname,pagebottonname,'filemodelattselectform');
	})
	function onlist(loadurl){
		if ($.browser.version==6.0){
			var h=document.body.clientHeight;
		}else{
			var h = $(window).height();
		}
		var formlist=document.getElementById('filemodelattselectform');

		var maxperpage=formlist.elements[1].value;

		var maxhit=formlist.elements[2].value;

		var nowpage=formlist.elements[3].value;

		var loadname=formlist.elements[6].value;

		var pagetextname=formlist.elements[7].value;

		var pagebottonname=formlist.elements[8].value;
		formlist.elements[0].value=loadurl;
		pageDimensions(h,maxperpage,maxhit,nowpage,loadurl,loadname,pagetextname,pagebottonname,'filemodelattselectform');
	}

	function resetwindow(){
		parent.closeifram();
	}
	function fnUpdate(){
		$("#floatBoxBg").hide();
		$("#floatBox").hide();
	}

	function checkimageinput(filename,inputnameID){


		if ($.browser.msie){
			var win = parent.frames[iframename].frames[editiframename];
		}else{
			var win = parent.frames[iframename].frames[1];
		}

		win.document.getElementById(inputnameID).value = filename;
		if (typeof(win.ImageDialog) != "undefined") {
			if (win.ImageDialog.getImageData) win.ImageDialog.getImageData();
			if (win.ImageDialog.showPreviewImage) win.ImageDialog.showPreviewImage(filename);
		}
		parent.closeifram();
	}

	function checkinput(filename,inputnameID){
		parent.frames[iframename].document.getElementById(inputnameID).value = filename;
		parent.closeifram();
	}

	function functionpic(filename,inputnameID){
		parent.frames[iframename].document.getElementById(inputnameID).value = filename;
		parent.frames[iframename].addpicipnput(filename,inputnameID,iframename);
		parent.closeifram();
	}

	function selectfile(){
		var filename=$('.pp_description').html();
		var fileinputid="<?php echo $this->_tpl_vars['fileinputid'] ?>";
		if (checkfrom=='edit'){
			checkimageinput(filename);
		}else if(checkfrom=='input'){
			checkinput(filename,fileinputid);
		}else if(checkfrom=='function'){
			functionpic(filename,fileinputid);
		}
	}
</script>
<!--[if IE 6]>
<style type="text/css" media="screen"> 
body { behavior:url("templates/css/csshover.htc");} 
</style> 
<![endif]-->
</head>

<body style="background-color: #FFFFFF">
<div class="centerrightwindow"  style="background-color: #FFFFFF">
	<div id="mainlistbotton">826dfebd693cd4d9f372d59e23d5a077tabmenubotton|<?php echo $this->_tpl_vars['listfunction'] ?>||826dfebd693cd4d9f372d59e23d5a077</div>
	<div class="listitle">826dfebd693cd4d9f372d59e23d5a077tablabel|<?php echo $this->_tpl_vars['listfunction'] ?>||826dfebd693cd4d9f372d59e23d5a077</div>
	<div id="mainwindowhidden">
		<!--main_start-->
		<form name="modelattselectform" id="filemodelattselectform" method="post">
		<input type="hidden" name="loadurl" id="loadurl" value="<?php echo $this->_tpl_vars['loadurl'] ?>">
		<input type="hidden" name="maxperpage" id="maxperpage" value="<?php echo $this->_tpl_vars['MaxPerPage'] ?>">
		<input type="hidden" name="maxhit" id="maxhit" value="<?php echo $this->_tpl_vars['MaxHit'] ?>">
		<input type="hidden" name="nowpage" id="nowpage" value="<?php echo $this->_tpl_vars['nowpage'] ?>">
		<input type="hidden" name="limitkey" id="limitkey" value="<?php echo $this->_tpl_vars['limitkey'] ?>">
		<input type="hidden" name="limitclass" id="limitclass" value="<?php echo $this->_tpl_vars['limitclass'] ?>">
		<input type="hidden" name="loadname" id="loadname" value="#fileloading">
		<input type="hidden" name="pagetextname" id="pagetextname" value="#filepageinfo">
		<input type="hidden" name="pagebottonname" id="pagebottonname" value="#filePagination">
		<div class="loadingdiv" id="fileloading"></div>
		</form>
		<!--main_end-->
	</div>
	<div id="downbotton">
		<div class="pageinfotext" id="filepageinfo"></div>
		<div class="pagebottonlist" id="pagebotton"><span id="filePagination" class="pagination"></span></div>
	</div>
</div>
</body>

</html>
